﻿using System;
using System.ServiceProcess;
using NhJump.Persistence.Wcf.Autofac.Services;

namespace NhJump.Persistence.Wcf.Autofac
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new PersistentServiceHost();
            if (Environment.UserInteractive)
            {
                host.ConsoleRun();
            }
            else
            {
                ServiceBase.Run(host);
            }
        }
    }
}